{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "from mlxtend.frequent_patterns import apriori, fpgrowth\n",
    "from mlxtend.frequent_patterns import association_rules"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "data = pd.read_excel('CatalogCrossSell.xls')\n",
    "# data = data.set_index('Customer Number')\n",
    "data.drop(columns = 'Customer Number', inplace = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Clothing Division</th>\n",
       "      <th>Housewares Division</th>\n",
       "      <th>Health Products Division</th>\n",
       "      <th>Automotive Division</th>\n",
       "      <th>Personal Electronics Division</th>\n",
       "      <th>Computers Division</th>\n",
       "      <th>Garden Division</th>\n",
       "      <th>Novelty Gift Division</th>\n",
       "      <th>Jewelry Division</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4993</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4994</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4995</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4996</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4997</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>4998 rows × 9 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      Clothing Division  Housewares Division  Health Products Division  \\\n",
       "0                     0                    1                         1   \n",
       "1                     0                    1                         1   \n",
       "2                     0                    1                         1   \n",
       "3                     0                    0                         1   \n",
       "4                     0                    0                         1   \n",
       "...                 ...                  ...                       ...   \n",
       "4993                  0                    0                         1   \n",
       "4994                  0                    1                         1   \n",
       "4995                  0                    0                         1   \n",
       "4996                  0                    0                         1   \n",
       "4997                  0                    0                         1   \n",
       "\n",
       "      Automotive Division  Personal Electronics Division  Computers Division  \\\n",
       "0                       1                              1                   0   \n",
       "1                       1                              1                   0   \n",
       "2                       1                              1                   0   \n",
       "3                       1                              1                   0   \n",
       "4                       0                              1                   0   \n",
       "...                   ...                            ...                 ...   \n",
       "4993                    0                              0                   0   \n",
       "4994                    0                              0                   0   \n",
       "4995                    0                              1                   0   \n",
       "4996                    0                              0                   0   \n",
       "4997                    0                              0                   0   \n",
       "\n",
       "      Garden Division  Novelty Gift Division  Jewelry Division  \n",
       "0                   0                      1                 0  \n",
       "1                   1                      1                 1  \n",
       "2                   1                      1                 1  \n",
       "3                   1                      1                 0  \n",
       "4                   1                      1                 0  \n",
       "...               ...                    ...               ...  \n",
       "4993                0                      0                 0  \n",
       "4994                1                      0                 1  \n",
       "4995                0                      0                 1  \n",
       "4996                0                      0                 0  \n",
       "4997                0                      0                 0  \n",
       "\n",
       "[4998 rows x 9 columns]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "apr_result = apriori(data, min_support = 0.1, use_colnames = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [],
   "source": [
    "fpg_result = fpgrowth(data, min_support = 0.1, use_colnames = True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>support</th>\n",
       "      <th>itemsets</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Automotive Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>(Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>(Housewares Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Health Products Division, Automotive Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>(Personal Electronics Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>(Novelty Gift Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>(Garden Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>(Novelty Gift Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>24</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>25</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>26</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>27</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>(Novelty Gift Division, Housewares Division, P...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>28</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>29</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>30</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>31</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>32</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>33</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>(Health Products Division, Garden Division, Je...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>34</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>35</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>36</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     support                                           itemsets\n",
       "0   0.393557                              (Housewares Division)\n",
       "1   1.000000                         (Health Products Division)\n",
       "2   0.134854                              (Automotive Division)\n",
       "3   0.467387                    (Personal Electronics Division)\n",
       "4   0.272109                                  (Garden Division)\n",
       "5   0.227491                            (Novelty Gift Division)\n",
       "6   0.356943                                 (Jewelry Division)\n",
       "7   0.393557    (Health Products Division, Housewares Division)\n",
       "8   0.235494  (Housewares Division, Personal Electronics Div...\n",
       "9   0.132853             (Housewares Division, Garden Division)\n",
       "10  0.134854       (Housewares Division, Novelty Gift Division)\n",
       "11  0.194878            (Housewares Division, Jewelry Division)\n",
       "12  0.134854    (Health Products Division, Automotive Division)\n",
       "13  0.467387  (Health Products Division, Personal Electronic...\n",
       "14  0.272109        (Health Products Division, Garden Division)\n",
       "15  0.227491  (Health Products Division, Novelty Gift Division)\n",
       "16  0.356943       (Health Products Division, Jewelry Division)\n",
       "17  0.163265   (Personal Electronics Division, Garden Division)\n",
       "18  0.169068  (Novelty Gift Division, Personal Electronics D...\n",
       "19  0.197479  (Personal Electronics Division, Jewelry Division)\n",
       "20  0.112245           (Novelty Gift Division, Garden Division)\n",
       "21  0.127251                (Garden Division, Jewelry Division)\n",
       "22  0.107243          (Novelty Gift Division, Jewelry Division)\n",
       "23  0.235494  (Health Products Division, Housewares Division...\n",
       "24  0.132853  (Health Products Division, Housewares Division...\n",
       "25  0.134854  (Health Products Division, Housewares Division...\n",
       "26  0.194878  (Health Products Division, Housewares Division...\n",
       "27  0.107843  (Novelty Gift Division, Housewares Division, P...\n",
       "28  0.132053  (Housewares Division, Personal Electronics Div...\n",
       "29  0.163265  (Health Products Division, Personal Electronic...\n",
       "30  0.169068  (Health Products Division, Novelty Gift Divisi...\n",
       "31  0.197479  (Health Products Division, Personal Electronic...\n",
       "32  0.112245  (Health Products Division, Novelty Gift Divisi...\n",
       "33  0.127251  (Health Products Division, Garden Division, Je...\n",
       "34  0.107243  (Health Products Division, Novelty Gift Divisi...\n",
       "35  0.107843  (Health Products Division, Housewares Division...\n",
       "36  0.132053  (Health Products Division, Housewares Division..."
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "apr_result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>support</th>\n",
       "      <th>itemsets</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Automotive Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>(Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>(Novelty Gift Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>(Novelty Gift Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>(Novelty Gift Division, Housewares Division, P...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>(Health Products Division, Automotive Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>24</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>25</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>26</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>27</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>28</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>29</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>30</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>31</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>(Personal Electronics Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>32</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>(Housewares Division, Garden Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>33</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>(Garden Division, Jewelry Division)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>34</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>35</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>36</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>(Health Products Division, Garden Division, Je...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     support                                           itemsets\n",
       "0   1.000000                         (Health Products Division)\n",
       "1   0.467387                    (Personal Electronics Division)\n",
       "2   0.393557                              (Housewares Division)\n",
       "3   0.227491                            (Novelty Gift Division)\n",
       "4   0.134854                              (Automotive Division)\n",
       "5   0.356943                                 (Jewelry Division)\n",
       "6   0.272109                                  (Garden Division)\n",
       "7   0.467387  (Health Products Division, Personal Electronic...\n",
       "8   0.393557    (Health Products Division, Housewares Division)\n",
       "9   0.235494  (Housewares Division, Personal Electronics Div...\n",
       "10  0.235494  (Health Products Division, Housewares Division...\n",
       "11  0.227491  (Health Products Division, Novelty Gift Division)\n",
       "12  0.169068  (Novelty Gift Division, Personal Electronics D...\n",
       "13  0.134854       (Housewares Division, Novelty Gift Division)\n",
       "14  0.112245           (Novelty Gift Division, Garden Division)\n",
       "15  0.107243          (Novelty Gift Division, Jewelry Division)\n",
       "16  0.169068  (Health Products Division, Novelty Gift Divisi...\n",
       "17  0.134854  (Health Products Division, Housewares Division...\n",
       "18  0.107843  (Novelty Gift Division, Housewares Division, P...\n",
       "19  0.107843  (Health Products Division, Housewares Division...\n",
       "20  0.112245  (Health Products Division, Novelty Gift Divisi...\n",
       "21  0.107243  (Health Products Division, Novelty Gift Divisi...\n",
       "22  0.134854    (Health Products Division, Automotive Division)\n",
       "23  0.356943       (Health Products Division, Jewelry Division)\n",
       "24  0.197479  (Personal Electronics Division, Jewelry Division)\n",
       "25  0.194878            (Housewares Division, Jewelry Division)\n",
       "26  0.197479  (Health Products Division, Personal Electronic...\n",
       "27  0.194878  (Health Products Division, Housewares Division...\n",
       "28  0.132053  (Housewares Division, Personal Electronics Div...\n",
       "29  0.132053  (Health Products Division, Housewares Division...\n",
       "30  0.272109        (Health Products Division, Garden Division)\n",
       "31  0.163265   (Personal Electronics Division, Garden Division)\n",
       "32  0.132853             (Housewares Division, Garden Division)\n",
       "33  0.127251                (Garden Division, Jewelry Division)\n",
       "34  0.163265  (Health Products Division, Personal Electronic...\n",
       "35  0.132853  (Health Products Division, Housewares Division...\n",
       "36  0.127251  (Health Products Division, Garden Division, Je..."
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fpg_result"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>antecedents</th>\n",
       "      <th>consequents</th>\n",
       "      <th>antecedent support</th>\n",
       "      <th>consequent support</th>\n",
       "      <th>support</th>\n",
       "      <th>confidence</th>\n",
       "      <th>lift</th>\n",
       "      <th>leverage</th>\n",
       "      <th>conviction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>(Automotive Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>(Housewares Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>(Personal Electronics Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>(Novelty Gift Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>(Jewelry Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>(Novelty Gift Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>(Novelty Gift Division, Housewares Division, P...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                          antecedents  \\\n",
       "0                               (Housewares Division)   \n",
       "1                               (Automotive Division)   \n",
       "2                     (Personal Electronics Division)   \n",
       "3                                   (Garden Division)   \n",
       "4                             (Novelty Gift Division)   \n",
       "5                                  (Jewelry Division)   \n",
       "6                             (Novelty Gift Division)   \n",
       "7   (Housewares Division, Personal Electronics Div...   \n",
       "8              (Housewares Division, Garden Division)   \n",
       "9        (Housewares Division, Novelty Gift Division)   \n",
       "10            (Housewares Division, Jewelry Division)   \n",
       "11       (Housewares Division, Novelty Gift Division)   \n",
       "12   (Personal Electronics Division, Garden Division)   \n",
       "13  (Health Products Division, Novelty Gift Division)   \n",
       "14  (Personal Electronics Division, Novelty Gift D...   \n",
       "15                            (Novelty Gift Division)   \n",
       "16  (Personal Electronics Division, Jewelry Division)   \n",
       "17           (Novelty Gift Division, Garden Division)   \n",
       "18                (Jewelry Division, Garden Division)   \n",
       "19          (Novelty Gift Division, Jewelry Division)   \n",
       "20  (Health Products Division, Housewares Division...   \n",
       "21  (Novelty Gift Division, Housewares Division, P...   \n",
       "22       (Housewares Division, Novelty Gift Division)   \n",
       "23  (Housewares Division, Personal Electronics Div...   \n",
       "\n",
       "                                          consequents  antecedent support  \\\n",
       "0                          (Health Products Division)            0.393557   \n",
       "1                          (Health Products Division)            0.134854   \n",
       "2                          (Health Products Division)            0.467387   \n",
       "3                          (Health Products Division)            0.272109   \n",
       "4                          (Health Products Division)            0.227491   \n",
       "5                          (Health Products Division)            0.356943   \n",
       "6                     (Personal Electronics Division)            0.227491   \n",
       "7                          (Health Products Division)            0.235494   \n",
       "8                          (Health Products Division)            0.132853   \n",
       "9                          (Health Products Division)            0.134854   \n",
       "10                         (Health Products Division)            0.194878   \n",
       "11                    (Personal Electronics Division)            0.134854   \n",
       "12                         (Health Products Division)            0.163265   \n",
       "13                    (Personal Electronics Division)            0.227491   \n",
       "14                         (Health Products Division)            0.169068   \n",
       "15  (Health Products Division, Personal Electronic...            0.227491   \n",
       "16                         (Health Products Division)            0.197479   \n",
       "17                         (Health Products Division)            0.112245   \n",
       "18                         (Health Products Division)            0.127251   \n",
       "19                         (Health Products Division)            0.107243   \n",
       "20                    (Personal Electronics Division)            0.134854   \n",
       "21                         (Health Products Division)            0.107843   \n",
       "22  (Health Products Division, Personal Electronic...            0.134854   \n",
       "23                         (Health Products Division)            0.132053   \n",
       "\n",
       "    consequent support   support  confidence      lift  leverage  conviction  \n",
       "0             1.000000  0.393557    1.000000  1.000000  0.000000         inf  \n",
       "1             1.000000  0.134854    1.000000  1.000000  0.000000         inf  \n",
       "2             1.000000  0.467387    1.000000  1.000000  0.000000         inf  \n",
       "3             1.000000  0.272109    1.000000  1.000000  0.000000         inf  \n",
       "4             1.000000  0.227491    1.000000  1.000000  0.000000         inf  \n",
       "5             1.000000  0.356943    1.000000  1.000000  0.000000         inf  \n",
       "6             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "7             1.000000  0.235494    1.000000  1.000000  0.000000         inf  \n",
       "8             1.000000  0.132853    1.000000  1.000000  0.000000         inf  \n",
       "9             1.000000  0.134854    1.000000  1.000000  0.000000         inf  \n",
       "10            1.000000  0.194878    1.000000  1.000000  0.000000         inf  \n",
       "11            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "12            1.000000  0.163265    1.000000  1.000000  0.000000         inf  \n",
       "13            0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "14            1.000000  0.169068    1.000000  1.000000  0.000000         inf  \n",
       "15            0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "16            1.000000  0.197479    1.000000  1.000000  0.000000         inf  \n",
       "17            1.000000  0.112245    1.000000  1.000000  0.000000         inf  \n",
       "18            1.000000  0.127251    1.000000  1.000000  0.000000         inf  \n",
       "19            1.000000  0.107243    1.000000  1.000000  0.000000         inf  \n",
       "20            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "21            1.000000  0.107843    1.000000  1.000000  0.000000         inf  \n",
       "22            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "23            1.000000  0.132053    1.000000  1.000000  0.000000         inf  "
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "apr_con_asso = association_rules(apr_result, metric=\"confidence\", min_threshold=0.7)\n",
    "apr_con_asso"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>antecedents</th>\n",
       "      <th>consequents</th>\n",
       "      <th>antecedent support</th>\n",
       "      <th>consequent support</th>\n",
       "      <th>support</th>\n",
       "      <th>confidence</th>\n",
       "      <th>lift</th>\n",
       "      <th>leverage</th>\n",
       "      <th>conviction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>(Novelty Gift Division, Housewares Division, P...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>(Novelty Gift Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>(Novelty Gift Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.107243</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>(Automotive Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>(Personal Electronics Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.163265</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>(Housewares Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.132853</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>(Jewelry Division, Garden Division)</td>\n",
       "      <td>(Health Products Division)</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.127251</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>inf</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                          antecedents  \\\n",
       "0                     (Personal Electronics Division)   \n",
       "1                               (Housewares Division)   \n",
       "2   (Housewares Division, Personal Electronics Div...   \n",
       "3                             (Novelty Gift Division)   \n",
       "4                             (Novelty Gift Division)   \n",
       "5   (Health Products Division, Novelty Gift Division)   \n",
       "6   (Personal Electronics Division, Novelty Gift D...   \n",
       "7                             (Novelty Gift Division)   \n",
       "8        (Housewares Division, Novelty Gift Division)   \n",
       "9        (Housewares Division, Novelty Gift Division)   \n",
       "10  (Health Products Division, Housewares Division...   \n",
       "11  (Novelty Gift Division, Housewares Division, P...   \n",
       "12       (Housewares Division, Novelty Gift Division)   \n",
       "13           (Novelty Gift Division, Garden Division)   \n",
       "14          (Novelty Gift Division, Jewelry Division)   \n",
       "15                              (Automotive Division)   \n",
       "16                                 (Jewelry Division)   \n",
       "17  (Personal Electronics Division, Jewelry Division)   \n",
       "18            (Housewares Division, Jewelry Division)   \n",
       "19  (Housewares Division, Personal Electronics Div...   \n",
       "20                                  (Garden Division)   \n",
       "21   (Personal Electronics Division, Garden Division)   \n",
       "22             (Housewares Division, Garden Division)   \n",
       "23                (Jewelry Division, Garden Division)   \n",
       "\n",
       "                                          consequents  antecedent support  \\\n",
       "0                          (Health Products Division)            0.467387   \n",
       "1                          (Health Products Division)            0.393557   \n",
       "2                          (Health Products Division)            0.235494   \n",
       "3                          (Health Products Division)            0.227491   \n",
       "4                     (Personal Electronics Division)            0.227491   \n",
       "5                     (Personal Electronics Division)            0.227491   \n",
       "6                          (Health Products Division)            0.169068   \n",
       "7   (Health Products Division, Personal Electronic...            0.227491   \n",
       "8                          (Health Products Division)            0.134854   \n",
       "9                     (Personal Electronics Division)            0.134854   \n",
       "10                    (Personal Electronics Division)            0.134854   \n",
       "11                         (Health Products Division)            0.107843   \n",
       "12  (Health Products Division, Personal Electronic...            0.134854   \n",
       "13                         (Health Products Division)            0.112245   \n",
       "14                         (Health Products Division)            0.107243   \n",
       "15                         (Health Products Division)            0.134854   \n",
       "16                         (Health Products Division)            0.356943   \n",
       "17                         (Health Products Division)            0.197479   \n",
       "18                         (Health Products Division)            0.194878   \n",
       "19                         (Health Products Division)            0.132053   \n",
       "20                         (Health Products Division)            0.272109   \n",
       "21                         (Health Products Division)            0.163265   \n",
       "22                         (Health Products Division)            0.132853   \n",
       "23                         (Health Products Division)            0.127251   \n",
       "\n",
       "    consequent support   support  confidence      lift  leverage  conviction  \n",
       "0             1.000000  0.467387    1.000000  1.000000  0.000000         inf  \n",
       "1             1.000000  0.393557    1.000000  1.000000  0.000000         inf  \n",
       "2             1.000000  0.235494    1.000000  1.000000  0.000000         inf  \n",
       "3             1.000000  0.227491    1.000000  1.000000  0.000000         inf  \n",
       "4             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "5             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "6             1.000000  0.169068    1.000000  1.000000  0.000000         inf  \n",
       "7             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "8             1.000000  0.134854    1.000000  1.000000  0.000000         inf  \n",
       "9             0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "10            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "11            1.000000  0.107843    1.000000  1.000000  0.000000         inf  \n",
       "12            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "13            1.000000  0.112245    1.000000  1.000000  0.000000         inf  \n",
       "14            1.000000  0.107243    1.000000  1.000000  0.000000         inf  \n",
       "15            1.000000  0.134854    1.000000  1.000000  0.000000         inf  \n",
       "16            1.000000  0.356943    1.000000  1.000000  0.000000         inf  \n",
       "17            1.000000  0.197479    1.000000  1.000000  0.000000         inf  \n",
       "18            1.000000  0.194878    1.000000  1.000000  0.000000         inf  \n",
       "19            1.000000  0.132053    1.000000  1.000000  0.000000         inf  \n",
       "20            1.000000  0.272109    1.000000  1.000000  0.000000         inf  \n",
       "21            1.000000  0.163265    1.000000  1.000000  0.000000         inf  \n",
       "22            1.000000  0.132853    1.000000  1.000000  0.000000         inf  \n",
       "23            1.000000  0.127251    1.000000  1.000000  0.000000         inf  "
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fpg_con_asso = association_rules(fpg_result, metric=\"confidence\", min_threshold=0.7)\n",
    "fpg_con_asso"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>antecedents</th>\n",
       "      <th>consequents</th>\n",
       "      <th>antecedent support</th>\n",
       "      <th>consequent support</th>\n",
       "      <th>support</th>\n",
       "      <th>confidence</th>\n",
       "      <th>lift</th>\n",
       "      <th>leverage</th>\n",
       "      <th>conviction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>24</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>25</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>26</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>27</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>28</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>29</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>30</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>31</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>32</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>33</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>34</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>35</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>36</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>37</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>38</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>39</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>40</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>41</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>42</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>43</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>44</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>45</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>46</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>47</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>48</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>49</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>50</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>51</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>52</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>53</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                          antecedents  \\\n",
       "0                               (Housewares Division)   \n",
       "1                             (Novelty Gift Division)   \n",
       "2                             (Novelty Gift Division)   \n",
       "3                     (Personal Electronics Division)   \n",
       "4                             (Novelty Gift Division)   \n",
       "5                                   (Garden Division)   \n",
       "6     (Health Products Division, Housewares Division)   \n",
       "7   (Health Products Division, Novelty Gift Division)   \n",
       "8                               (Housewares Division)   \n",
       "9                             (Novelty Gift Division)   \n",
       "10       (Housewares Division, Novelty Gift Division)   \n",
       "11  (Personal Electronics Division, Novelty Gift D...   \n",
       "12  (Housewares Division, Personal Electronics Div...   \n",
       "13                            (Novelty Gift Division)   \n",
       "14                              (Housewares Division)   \n",
       "15                    (Personal Electronics Division)   \n",
       "16  (Housewares Division, Personal Electronics Div...   \n",
       "17            (Housewares Division, Jewelry Division)   \n",
       "18  (Personal Electronics Division, Jewelry Division)   \n",
       "19                              (Housewares Division)   \n",
       "20                    (Personal Electronics Division)   \n",
       "21                                 (Jewelry Division)   \n",
       "22  (Health Products Division, Novelty Gift Division)   \n",
       "23  (Health Products Division, Personal Electronic...   \n",
       "24                            (Novelty Gift Division)   \n",
       "25                    (Personal Electronics Division)   \n",
       "26  (Health Products Division, Novelty Gift Division)   \n",
       "27        (Health Products Division, Garden Division)   \n",
       "28                            (Novelty Gift Division)   \n",
       "29                                  (Garden Division)   \n",
       "30  (Health Products Division, Housewares Division...   \n",
       "31  (Health Products Division, Housewares Division...   \n",
       "32  (Health Products Division, Novelty Gift Divisi...   \n",
       "33    (Health Products Division, Housewares Division)   \n",
       "34  (Health Products Division, Personal Electronic...   \n",
       "35  (Health Products Division, Novelty Gift Division)   \n",
       "36  (Housewares Division, Personal Electronics Div...   \n",
       "37       (Housewares Division, Novelty Gift Division)   \n",
       "38  (Novelty Gift Division, Personal Electronics D...   \n",
       "39                              (Housewares Division)   \n",
       "40                    (Personal Electronics Division)   \n",
       "41                            (Novelty Gift Division)   \n",
       "42  (Health Products Division, Housewares Division...   \n",
       "43  (Health Products Division, Housewares Division...   \n",
       "44  (Health Products Division, Personal Electronic...   \n",
       "45    (Health Products Division, Housewares Division)   \n",
       "46  (Health Products Division, Personal Electronic...   \n",
       "47       (Health Products Division, Jewelry Division)   \n",
       "48  (Housewares Division, Personal Electronics Div...   \n",
       "49            (Housewares Division, Jewelry Division)   \n",
       "50  (Personal Electronics Division, Jewelry Division)   \n",
       "51                              (Housewares Division)   \n",
       "52                    (Personal Electronics Division)   \n",
       "53                                 (Jewelry Division)   \n",
       "\n",
       "                                          consequents  antecedent support  \\\n",
       "0                             (Novelty Gift Division)            0.393557   \n",
       "1                               (Housewares Division)            0.227491   \n",
       "2                     (Personal Electronics Division)            0.227491   \n",
       "3                             (Novelty Gift Division)            0.467387   \n",
       "4                                   (Garden Division)            0.227491   \n",
       "5                             (Novelty Gift Division)            0.272109   \n",
       "6                             (Novelty Gift Division)            0.393557   \n",
       "7                               (Housewares Division)            0.227491   \n",
       "8   (Health Products Division, Novelty Gift Division)            0.393557   \n",
       "9     (Health Products Division, Housewares Division)            0.227491   \n",
       "10                    (Personal Electronics Division)            0.134854   \n",
       "11                              (Housewares Division)            0.169068   \n",
       "12                            (Novelty Gift Division)            0.235494   \n",
       "13  (Housewares Division, Personal Electronics Div...            0.227491   \n",
       "14  (Personal Electronics Division, Novelty Gift D...            0.393557   \n",
       "15       (Housewares Division, Novelty Gift Division)            0.467387   \n",
       "16                                 (Jewelry Division)            0.235494   \n",
       "17                    (Personal Electronics Division)            0.194878   \n",
       "18                              (Housewares Division)            0.197479   \n",
       "19  (Personal Electronics Division, Jewelry Division)            0.393557   \n",
       "20            (Housewares Division, Jewelry Division)            0.467387   \n",
       "21  (Housewares Division, Personal Electronics Div...            0.356943   \n",
       "22                    (Personal Electronics Division)            0.227491   \n",
       "23                            (Novelty Gift Division)            0.467387   \n",
       "24  (Health Products Division, Personal Electronic...            0.227491   \n",
       "25  (Health Products Division, Novelty Gift Division)            0.467387   \n",
       "26                                  (Garden Division)            0.227491   \n",
       "27                            (Novelty Gift Division)            0.272109   \n",
       "28        (Health Products Division, Garden Division)            0.227491   \n",
       "29  (Health Products Division, Novelty Gift Division)            0.272109   \n",
       "30                            (Novelty Gift Division)            0.235494   \n",
       "31                    (Personal Electronics Division)            0.134854   \n",
       "32                              (Housewares Division)            0.169068   \n",
       "33  (Novelty Gift Division, Personal Electronics D...            0.393557   \n",
       "34       (Housewares Division, Novelty Gift Division)            0.467387   \n",
       "35  (Housewares Division, Personal Electronics Div...            0.227491   \n",
       "36  (Health Products Division, Novelty Gift Division)            0.235494   \n",
       "37  (Health Products Division, Personal Electronic...            0.134854   \n",
       "38    (Health Products Division, Housewares Division)            0.169068   \n",
       "39  (Health Products Division, Novelty Gift Divisi...            0.393557   \n",
       "40  (Health Products Division, Housewares Division...            0.467387   \n",
       "41  (Health Products Division, Housewares Division...            0.227491   \n",
       "42                                 (Jewelry Division)            0.235494   \n",
       "43                    (Personal Electronics Division)            0.194878   \n",
       "44                              (Housewares Division)            0.197479   \n",
       "45  (Personal Electronics Division, Jewelry Division)            0.393557   \n",
       "46            (Housewares Division, Jewelry Division)            0.467387   \n",
       "47  (Housewares Division, Personal Electronics Div...            0.356943   \n",
       "48       (Health Products Division, Jewelry Division)            0.235494   \n",
       "49  (Health Products Division, Personal Electronic...            0.194878   \n",
       "50    (Health Products Division, Housewares Division)            0.197479   \n",
       "51  (Health Products Division, Personal Electronic...            0.393557   \n",
       "52  (Health Products Division, Housewares Division...            0.467387   \n",
       "53  (Health Products Division, Housewares Division...            0.356943   \n",
       "\n",
       "    consequent support   support  confidence      lift  leverage  conviction  \n",
       "0             0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "1             0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "2             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "3             0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "4             0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "5             0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "6             0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "7             0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "8             0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "9             0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "10            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "11            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "12            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "13            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "14            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "15            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "16            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "17            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "18            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "19            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "20            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "21            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  \n",
       "22            0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "23            0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "24            0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "25            0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "26            0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "27            0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "28            0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "29            0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "30            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "31            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "32            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "33            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "34            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "35            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "36            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "37            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "38            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "39            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "40            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "41            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "42            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "43            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "44            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "45            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "46            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "47            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  \n",
       "48            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "49            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "50            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "51            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "52            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "53            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  "
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "apr_lift_asso = association_rules(apr_result, metric=\"lift\", min_threshold=1.4)\n",
    "apr_lift_asso"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>antecedents</th>\n",
       "      <th>consequents</th>\n",
       "      <th>antecedent support</th>\n",
       "      <th>consequent support</th>\n",
       "      <th>support</th>\n",
       "      <th>confidence</th>\n",
       "      <th>lift</th>\n",
       "      <th>leverage</th>\n",
       "      <th>conviction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <td>0</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>1</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>2</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>3</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>4</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>5</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>6</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>7</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>8</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.743184</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>2.073908</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>9</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.361729</td>\n",
       "      <td>1.590082</td>\n",
       "      <td>0.062741</td>\n",
       "      <td>1.210316</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>10</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>11</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>12</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.342654</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.175194</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>13</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.592788</td>\n",
       "      <td>1.506230</td>\n",
       "      <td>0.045323</td>\n",
       "      <td>1.489255</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>14</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>15</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>16</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>17</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>18</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Novelty Gift D...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>19</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>20</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>21</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>22</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>23</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>24</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>25</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>26</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.457944</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.425146</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>27</td>\n",
       "      <td>(Housewares Division, Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.799703</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>2.659120</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>28</td>\n",
       "      <td>(Novelty Gift Division, Personal Electronics D...</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.637870</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.674654</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>29</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Divisi...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.169068</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.274021</td>\n",
       "      <td>1.620780</td>\n",
       "      <td>0.041305</td>\n",
       "      <td>1.144569</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>30</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.134854</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.230736</td>\n",
       "      <td>1.711009</td>\n",
       "      <td>0.044814</td>\n",
       "      <td>1.124642</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>31</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.107843</td>\n",
       "      <td>0.474055</td>\n",
       "      <td>2.013020</td>\n",
       "      <td>0.054270</td>\n",
       "      <td>1.453584</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>32</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>33</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>34</td>\n",
       "      <td>(Novelty Gift Division)</td>\n",
       "      <td>(Health Products Division, Garden Division)</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.493404</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.436827</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>35</td>\n",
       "      <td>(Garden Division)</td>\n",
       "      <td>(Health Products Division, Novelty Gift Division)</td>\n",
       "      <td>0.272109</td>\n",
       "      <td>0.227491</td>\n",
       "      <td>0.112245</td>\n",
       "      <td>0.412500</td>\n",
       "      <td>1.813259</td>\n",
       "      <td>0.050343</td>\n",
       "      <td>1.314909</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>36</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>37</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>38</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>39</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>40</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>41</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>42</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>43</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>44</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>45</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>46</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>47</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>48</td>\n",
       "      <td>(Housewares Division, Personal Electronics Div...</td>\n",
       "      <td>(Health Products Division, Jewelry Division)</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.560748</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.463981</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>49</td>\n",
       "      <td>(Housewares Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.677618</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.652118</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>50</td>\n",
       "      <td>(Personal Electronics Division, Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division)</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.668693</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.830455</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>51</td>\n",
       "      <td>(Housewares Division)</td>\n",
       "      <td>(Health Products Division, Personal Electronic...</td>\n",
       "      <td>0.393557</td>\n",
       "      <td>0.197479</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.335536</td>\n",
       "      <td>1.699099</td>\n",
       "      <td>0.054333</td>\n",
       "      <td>1.207773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>52</td>\n",
       "      <td>(Personal Electronics Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.467387</td>\n",
       "      <td>0.194878</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.282534</td>\n",
       "      <td>1.449801</td>\n",
       "      <td>0.040969</td>\n",
       "      <td>1.122175</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <td>53</td>\n",
       "      <td>(Jewelry Division)</td>\n",
       "      <td>(Health Products Division, Housewares Division...</td>\n",
       "      <td>0.356943</td>\n",
       "      <td>0.235494</td>\n",
       "      <td>0.132053</td>\n",
       "      <td>0.369955</td>\n",
       "      <td>1.570974</td>\n",
       "      <td>0.047995</td>\n",
       "      <td>1.213415</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                          antecedents  \\\n",
       "0                             (Novelty Gift Division)   \n",
       "1                     (Personal Electronics Division)   \n",
       "2                               (Housewares Division)   \n",
       "3                             (Novelty Gift Division)   \n",
       "4                             (Novelty Gift Division)   \n",
       "5                                   (Garden Division)   \n",
       "6   (Health Products Division, Novelty Gift Division)   \n",
       "7   (Health Products Division, Personal Electronic...   \n",
       "8                             (Novelty Gift Division)   \n",
       "9                     (Personal Electronics Division)   \n",
       "10    (Health Products Division, Housewares Division)   \n",
       "11  (Health Products Division, Novelty Gift Division)   \n",
       "12                              (Housewares Division)   \n",
       "13                            (Novelty Gift Division)   \n",
       "14       (Housewares Division, Novelty Gift Division)   \n",
       "15  (Personal Electronics Division, Novelty Gift D...   \n",
       "16  (Housewares Division, Personal Electronics Div...   \n",
       "17                            (Novelty Gift Division)   \n",
       "18                              (Housewares Division)   \n",
       "19                    (Personal Electronics Division)   \n",
       "20  (Health Products Division, Housewares Division...   \n",
       "21  (Health Products Division, Housewares Division...   \n",
       "22  (Health Products Division, Novelty Gift Divisi...   \n",
       "23    (Health Products Division, Housewares Division)   \n",
       "24  (Health Products Division, Personal Electronic...   \n",
       "25  (Health Products Division, Novelty Gift Division)   \n",
       "26  (Housewares Division, Personal Electronics Div...   \n",
       "27       (Housewares Division, Novelty Gift Division)   \n",
       "28  (Novelty Gift Division, Personal Electronics D...   \n",
       "29                              (Housewares Division)   \n",
       "30                    (Personal Electronics Division)   \n",
       "31                            (Novelty Gift Division)   \n",
       "32  (Health Products Division, Novelty Gift Division)   \n",
       "33        (Health Products Division, Garden Division)   \n",
       "34                            (Novelty Gift Division)   \n",
       "35                                  (Garden Division)   \n",
       "36  (Housewares Division, Personal Electronics Div...   \n",
       "37            (Housewares Division, Jewelry Division)   \n",
       "38  (Personal Electronics Division, Jewelry Division)   \n",
       "39                              (Housewares Division)   \n",
       "40                    (Personal Electronics Division)   \n",
       "41                                 (Jewelry Division)   \n",
       "42  (Health Products Division, Housewares Division...   \n",
       "43  (Health Products Division, Housewares Division...   \n",
       "44  (Health Products Division, Personal Electronic...   \n",
       "45    (Health Products Division, Housewares Division)   \n",
       "46  (Health Products Division, Personal Electronic...   \n",
       "47       (Health Products Division, Jewelry Division)   \n",
       "48  (Housewares Division, Personal Electronics Div...   \n",
       "49            (Housewares Division, Jewelry Division)   \n",
       "50  (Personal Electronics Division, Jewelry Division)   \n",
       "51                              (Housewares Division)   \n",
       "52                    (Personal Electronics Division)   \n",
       "53                                 (Jewelry Division)   \n",
       "\n",
       "                                          consequents  antecedent support  \\\n",
       "0                     (Personal Electronics Division)            0.227491   \n",
       "1                             (Novelty Gift Division)            0.467387   \n",
       "2                             (Novelty Gift Division)            0.393557   \n",
       "3                               (Housewares Division)            0.227491   \n",
       "4                                   (Garden Division)            0.227491   \n",
       "5                             (Novelty Gift Division)            0.272109   \n",
       "6                     (Personal Electronics Division)            0.227491   \n",
       "7                             (Novelty Gift Division)            0.467387   \n",
       "8   (Health Products Division, Personal Electronic...            0.227491   \n",
       "9   (Health Products Division, Novelty Gift Division)            0.467387   \n",
       "10                            (Novelty Gift Division)            0.393557   \n",
       "11                              (Housewares Division)            0.227491   \n",
       "12  (Health Products Division, Novelty Gift Division)            0.393557   \n",
       "13    (Health Products Division, Housewares Division)            0.227491   \n",
       "14                    (Personal Electronics Division)            0.134854   \n",
       "15                              (Housewares Division)            0.169068   \n",
       "16                            (Novelty Gift Division)            0.235494   \n",
       "17  (Housewares Division, Personal Electronics Div...            0.227491   \n",
       "18  (Personal Electronics Division, Novelty Gift D...            0.393557   \n",
       "19       (Housewares Division, Novelty Gift Division)            0.467387   \n",
       "20                            (Novelty Gift Division)            0.235494   \n",
       "21                    (Personal Electronics Division)            0.134854   \n",
       "22                              (Housewares Division)            0.169068   \n",
       "23  (Novelty Gift Division, Personal Electronics D...            0.393557   \n",
       "24       (Housewares Division, Novelty Gift Division)            0.467387   \n",
       "25  (Housewares Division, Personal Electronics Div...            0.227491   \n",
       "26  (Health Products Division, Novelty Gift Division)            0.235494   \n",
       "27  (Health Products Division, Personal Electronic...            0.134854   \n",
       "28    (Health Products Division, Housewares Division)            0.169068   \n",
       "29  (Health Products Division, Novelty Gift Divisi...            0.393557   \n",
       "30  (Health Products Division, Housewares Division...            0.467387   \n",
       "31  (Health Products Division, Housewares Division...            0.227491   \n",
       "32                                  (Garden Division)            0.227491   \n",
       "33                            (Novelty Gift Division)            0.272109   \n",
       "34        (Health Products Division, Garden Division)            0.227491   \n",
       "35  (Health Products Division, Novelty Gift Division)            0.272109   \n",
       "36                                 (Jewelry Division)            0.235494   \n",
       "37                    (Personal Electronics Division)            0.194878   \n",
       "38                              (Housewares Division)            0.197479   \n",
       "39  (Personal Electronics Division, Jewelry Division)            0.393557   \n",
       "40            (Housewares Division, Jewelry Division)            0.467387   \n",
       "41  (Housewares Division, Personal Electronics Div...            0.356943   \n",
       "42                                 (Jewelry Division)            0.235494   \n",
       "43                    (Personal Electronics Division)            0.194878   \n",
       "44                              (Housewares Division)            0.197479   \n",
       "45  (Personal Electronics Division, Jewelry Division)            0.393557   \n",
       "46            (Housewares Division, Jewelry Division)            0.467387   \n",
       "47  (Housewares Division, Personal Electronics Div...            0.356943   \n",
       "48       (Health Products Division, Jewelry Division)            0.235494   \n",
       "49  (Health Products Division, Personal Electronic...            0.194878   \n",
       "50    (Health Products Division, Housewares Division)            0.197479   \n",
       "51  (Health Products Division, Personal Electronic...            0.393557   \n",
       "52  (Health Products Division, Housewares Division...            0.467387   \n",
       "53  (Health Products Division, Housewares Division...            0.356943   \n",
       "\n",
       "    consequent support   support  confidence      lift  leverage  conviction  \n",
       "0             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "1             0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "2             0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "3             0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "4             0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "5             0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "6             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "7             0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "8             0.467387  0.169068    0.743184  1.590082  0.062741    2.073908  \n",
       "9             0.227491  0.169068    0.361729  1.590082  0.062741    1.210316  \n",
       "10            0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "11            0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "12            0.227491  0.134854    0.342654  1.506230  0.045323    1.175194  \n",
       "13            0.393557  0.134854    0.592788  1.506230  0.045323    1.489255  \n",
       "14            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "15            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "16            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "17            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "18            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "19            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "20            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "21            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "22            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "23            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "24            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "25            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "26            0.227491  0.107843    0.457944  2.013020  0.054270    1.425146  \n",
       "27            0.467387  0.107843    0.799703  1.711009  0.044814    2.659120  \n",
       "28            0.393557  0.107843    0.637870  1.620780  0.041305    1.674654  \n",
       "29            0.169068  0.107843    0.274021  1.620780  0.041305    1.144569  \n",
       "30            0.134854  0.107843    0.230736  1.711009  0.044814    1.124642  \n",
       "31            0.235494  0.107843    0.474055  2.013020  0.054270    1.453584  \n",
       "32            0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "33            0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "34            0.272109  0.112245    0.493404  1.813259  0.050343    1.436827  \n",
       "35            0.227491  0.112245    0.412500  1.813259  0.050343    1.314909  \n",
       "36            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "37            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "38            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "39            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "40            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "41            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  \n",
       "42            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "43            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "44            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "45            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "46            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "47            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  \n",
       "48            0.356943  0.132053    0.560748  1.570974  0.047995    1.463981  \n",
       "49            0.467387  0.132053    0.677618  1.449801  0.040969    1.652118  \n",
       "50            0.393557  0.132053    0.668693  1.699099  0.054333    1.830455  \n",
       "51            0.197479  0.132053    0.335536  1.699099  0.054333    1.207773  \n",
       "52            0.194878  0.132053    0.282534  1.449801  0.040969    1.122175  \n",
       "53            0.235494  0.132053    0.369955  1.570974  0.047995    1.213415  "
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fpg_lift_asso = association_rules(fpg_result, metric=\"lift\", min_threshold=1.4)\n",
    "fpg_lift_asso"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [],
   "source": [
    "apr_result.to_csv('apr_result.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [],
   "source": [
    "apr_con_asso.to_csv('apr_con_asso.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [],
   "source": [
    "apr_lift_asso.to_csv('apr_lift_asso.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "fpg_result.to_csv('fpg_result.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "fpg_con_asso.to_csv('fpg_con_asso.csv')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "fpg_lift_asso.to_csv('fpg_lift_asso.csv')"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
